package com.carnation.service;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

import com.carnation.bean.FTPFileInfo;

public abstract interface Ftp {
	
	public abstract void uploadFile(String path,String localName,String ftpName);
	
	public abstract void downloadFile(String path,String ftpName,String localfile);
	
	public abstract void close();
	
	public abstract boolean mkdir(String path,String directoryName);
	
	public abstract boolean rmdir(String path,String directoryName);
	
	public abstract List<FTPFileInfo> getFtpFileInfoByParent(String path);
	
	public abstract Map<String,Long> findRegularFileList(String path);
	
	public abstract String getPath(String path) throws Exception ;
	
	public abstract InputStream findFileStreamByRealPathAndFileName(String realpath,String filename);
	
	public abstract String deleteFile(String path,String fileName);
}
